<!DOCTYPE html>
<html lang="en">
<body>
	<script
		src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
	<script>
		(function($) {
			// Responds to multiple events 
			$(document)
					.bind(
							'click keypress resize',
							function(event) {
								alert('A click, keypress, or resize event occured on the document.');
							});
		})(jQuery);
	</script>
</body>
</html>